/* Swiss风格的Markdown主题 */
.markdown-theme-swiss {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: #222;
  background-color: #fff;
  padding: 20px;
  max-width: 780px;
  margin: 0 auto;
  letter-spacing: -0.01em;
}

.markdown-theme-swiss h1,
.markdown-theme-swiss h2,
.markdown-theme-swiss h3,
.markdown-theme-swiss h4,
.markdown-theme-swiss h5,
.markdown-theme-swiss h6 {
  font-weight: bold;
  margin-top: 1.5em;
  margin-bottom: 0.5em;
  color: #000;
}

.markdown-theme-swiss h1 {
  font-size: 2.2em;
  line-height: 1.1;
  margin-top: 0.6em;
  margin-bottom: 0.6em;
  text-transform: uppercase;
  letter-spacing: -0.03em;
}

.markdown-theme-swiss h2 {
  font-size: 1.8em;
  line-height: 1.2;
  letter-spacing: -0.02em;
  border-bottom: 1px solid #eee;
  padding-bottom: 0.2em;
}

.markdown-theme-swiss h3 {
  font-size: 1.4em;
  letter-spacing: -0.01em;
}

.markdown-theme-swiss h4 {
  font-size: 1.2em;
}

.markdown-theme-swiss p {
  margin-bottom: 1.3em;
}

.markdown-theme-swiss a {
  color: #e51e3e;
  text-decoration: none;
}

.markdown-theme-swiss a:hover {
  text-decoration: underline;
}

.markdown-theme-swiss blockquote {
  margin: 1em 0;
  padding: 0 1em;
  color: #666;
  border-left: 4px solid #e51e3e;
}

.markdown-theme-swiss code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  background-color: #f8f8f8;
  padding: 0.2em 0.4em;
  border-radius: 3px;
  font-size: 0.9em;
}

.markdown-theme-swiss pre {
  background-color: #f8f8f8;
  padding: 16px;
  border-radius: 3px;
  margin: 1.2em 0;
  overflow-x: auto;
}

.markdown-theme-swiss pre code {
  background-color: transparent;
  padding: 0;
}

.markdown-theme-swiss img {
  max-width: 100%;
  margin: 1.2em auto;
  display: block;
}

.markdown-theme-swiss hr {
  border: none;
  border-top: 1px solid #eee;
  margin: 2em 0;
}

.markdown-theme-swiss ul,
.markdown-theme-swiss ol {
  margin-bottom: 1.2em;
  padding-left: 2em;
}

.markdown-theme-swiss li {
  margin-bottom: 0.4em;
}

.markdown-theme-swiss table {
  border-collapse: collapse;
  width: 100%;
  margin: 1.2em 0;
  border: 1px solid #eee;
}

.markdown-theme-swiss table th,
.markdown-theme-swiss table td {
  border: 1px solid #eee;
  padding: 8px 12px;
  text-align: left;
}

.markdown-theme-swiss table th {
  background-color: #f8f8f8;
  font-weight: bold;
  text-transform: uppercase;
  font-size: 0.9em;
}

.markdown-theme-swiss table tr:nth-child(even) {
  background-color: #f8f8f8;
}

/* 暗色模式 */
.dark-mode .markdown-theme-swiss {
  color: #f0f0f0;
  background-color: #222;
}

.dark-mode .markdown-theme-swiss h1,
.dark-mode .markdown-theme-swiss h2,
.dark-mode .markdown-theme-swiss h3,
.dark-mode .markdown-theme-swiss h4,
.dark-mode .markdown-theme-swiss h5,
.dark-mode .markdown-theme-swiss h6 {
  color: #fff;
}

.dark-mode .markdown-theme-swiss h2 {
  border-bottom: 1px solid #333;
}

.dark-mode .markdown-theme-swiss a {
  color: #ff4d6a;
}

.dark-mode .markdown-theme-swiss blockquote {
  color: #aaa;
  border-left: 4px solid #ff4d6a;
}

.dark-mode .markdown-theme-swiss code {
  background-color: #333;
}

.dark-mode .markdown-theme-swiss pre {
  background-color: #333;
}

.dark-mode .markdown-theme-swiss hr {
  border-top: 1px solid #333;
}

.dark-mode .markdown-theme-swiss table {
  border: 1px solid #333;
}

.dark-mode .markdown-theme-swiss table th,
.dark-mode .markdown-theme-swiss table td {
  border: 1px solid #333;
}

.dark-mode .markdown-theme-swiss table th {
  background-color: #333;
}

.dark-mode .markdown-theme-swiss table tr:nth-child(even) {
  background-color: #2a2a2a;
} 